{% load static %}

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

        <title>用户登录</title>
        <link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap.css' %}" />
        <link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap-theme.css' %}" />
        <link rel="stylesheet" href="{% static 'common/css/default.css' %}" />
        <script src="{% static 'common/js/jquery.min.js' %}"></script>
        <script src="{% static 'bootstrap/js/bootstrap.js' %}"></script>
        <script type="text/javascript">
            /*$(document).ready(function(){*/

            /*});*/
        </script>
    </head>
    <body>
        <div class="container">
            <div class="row col-md-6 col-sm-offset-3 login">

                    <form class="form-horizontal" action="" role="form" method="post">

                        <div class="form-group">
                            <div class="col-sm-5 col-sm-offset-5">
                                <strong>用户注册</strong>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="username" class="col-sm-3 control-label">用户名:</label>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" id="username" name="username" placeholder="用户名" />
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="password" class="col-sm-3 control-label">密码:</label>
                            <div class="col-sm-7">
                                <input type="password" class="form-control" id="password" name="password" placeholder="密码" />

                            </div>
                        </div>

                        <div class="form-group">
                            <label for="password" class="col-sm-3 control-label">密码:</label>
                            <div class="col-sm-7">
                                <input type="password" class="form-control" id="repass" name="repass" placeholder="确认密码" />
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-7">
                                <input type="hidden" name="next" value="{{ next }}">
                                {% csrf_token %}
                                <button type="submit" class="btn btn-primary btn-login">注册</button>
                                <a href="{% url 'user_login' %}" class="btn btn-default col-sm-offset-3">登陆</a>
                            </div>

                        </div>

                    </form>

            </div>
        </div>
    </body>
</html>